package org.iipg.common.data.dto;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author zhuhy163@163.com
 * @Description
 * @date 2020/12/12 下午3:02
 */
@Data
public class UserDto {

    private String account;

    private String name;

    private String mobile;

    private int departId;

    private List<String> authorities;

    public static UserDto defaultUser() {
        List<String> defaultAuthorities = new ArrayList<>();

        UserDto userDto = new UserDto();
        userDto.setAccount("anonymous");
        userDto.setName("匿名用户");
        userDto.setDepartId(0);
        userDto.setAuthorities(defaultAuthorities);

        return userDto;
    }
}
